package HomeWWork.HomeWork1;

import java.util.ArrayList;
import java.util.Collections;

/*
 *@Student 张策
 */
public class Main {
    public static void main(String[] args) {
        ArrayList list = new ArrayList();
        list.add(new T1("123456789123456789"));
        list.add(new T1("123456789123456789"));

        Collections.reverse(list);
    }

}
class T1{
    private String title;
    private String table;

    public T1(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTable() {
        return table;
    }

    public void setTable(String table) {
        this.table = table;
    }

    @Override
    public String toString() {
        return "T1{" +
                "title='" + title + '\'' +
                ", table='" + table + '\'' +
                '}';
    }
}